<template>
	<view class="fansLayout">
		<view class="left" @click="goUserInfo(item.user_id)">
			<view class="avatar">
				<image :src="item.userInfo.avator" mode="aspectFill"></image>
			</view>
			<view class="info">
				<view class="nickname">{{item.userInfo.nickname}}</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue';
	defineProps(['item'])
	const goUserInfo = (id) => {
		uni.navigateTo({
			url: "/pages/user/user?id=" + id
		})
	}
	
</script>

<style lang="scss" scoped>
	.fansLayout {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10rpx;

		.left {
			display: flex;
			align-items: center;

			.avatar {
				width: 60rpx;
				height: 60rpx;
				overflow: hidden;
				border-radius: 50%;
				margin-right: 20rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.info {
				.inline_time {
					color: #6b7280;
					font-size: 20rpx;
				}
			}
		}
	}
</style>